package main

import (

	"github.com/labstack/echo"
	//"github.com/labstack/echo/middleware"
	ewa "gitee.com/jinquan711/ewa"
)

func main() {

	ewa.ConfigParser()

	e := echo.New()
	//e.Use(middleware.Logger())

	ewa.PageTemplatePool(e, ewa.CfgRendPage.PageTempDir+`/`+"*.html")

	ewa.InnerCfgRouteInit(e)
	//e.Logger.Fatal(e.Start(":1323"))

	e.Start(ewa.EchoPort)
}
